import ltRequest from "./index"

//轮播图
export function getBannerList(type){
    return ltRequest.get("/banner",{
        type
    })
}
//歌曲排行
export function getTopList(idx){
    return ltRequest.get("/top/list",{
        idx
    })
}

//歌单
export function getSongMenu(cat="全部",limit=6){
       return ltRequest.get("/top/playlist",{
           cat,
           limit
       })
}

//rank详情
export function getRankings(idx){
    return ltRequest.get("/top/list",{
        idx
    })
}
//歌单详情

export function getPlaylistDetail(id){
    return ltRequest.get("/playlist/detail/dynamic",{
        id
    })
}

//歌词详情
export function songDetail(id){
    return ltRequest.get("/lyric",{
        id
    })
}
//歌曲详情
export function getSongDetail(ids){
    return ltRequest.get("/song/detail",{
        ids
    })
}
